import request from '@/utils/request'

// 查询疵点详情列表
export function listDefectdetail(query) {
  return request({
    url: '/mesana/defectdetail/list',
    method: 'get',
    params: query
  })
}

// 查询疵点详情详细
export function getDefectdetail(id) {
  return request({
    url: '/mesana/defectdetail/' + id,
    method: 'get'
  })
}

// 新增疵点详情
export function addDefectdetail(data) {
  return request({
    url: '/mesana/defectdetail',
    method: 'post',
    data: data
  })
}

// 修改疵点详情
export function updateDefectdetail(data) {
  return request({
    url: '/mesana/defectdetail',
    method: 'put',
    data: data
  })
}

// 删除疵点详情
export function delDefectdetail(id) {
  return request({
    url: '/mesana/defectdetail/' + id,
    method: 'delete'
  })
}

// 导出疵点详情
export function exportDefectdetail(query) {
  return request({
    url: '/mesana/defectdetail/export',
    method: 'get',
    params: query
  })
}